package com.rundow.driver.plcs7.factory;

import com.rundow.common.base.utils.ApplicationContextUtil;
import com.rundow.common.sdk.factory.ServiceContainerFactory;
import com.rundow.common.sdk.service.DriverCommandService;
import com.rundow.common.sdk.service.DriverCustomService;
import com.rundow.common.sdk.service.DriverScheduleService;

public class PlcS7Factory implements ServiceContainerFactory {
    @Override
    public DriverCustomService createDriverCustomService() {
        final DriverCustomService plcs7DriverCustomService =(DriverCustomService) ApplicationContextUtil.getBean("plcs7DriverCustomService");
        return plcs7DriverCustomService;
    }

    @Override
    public DriverCommandService createdriverCommandService() {
        final DriverCommandService plcs7DriverCommandService =(DriverCommandService) ApplicationContextUtil.getBean("plcs7DriverCommandService");
        return plcs7DriverCommandService;
    }

    @Override
    public DriverScheduleService createdriverScheduleService() {
        final DriverScheduleService opcuaDriverScheduleService =(DriverScheduleService) ApplicationContextUtil.getBean("opcuaDriverScheduleService");
        return opcuaDriverScheduleService;
    }
}
